package cn.bjit.service;

import cn.bjit.mapper.AddressMapper;
import cn.bjit.model.AddressDO;
import cn.bjit.request.AddressAddReqeust;
import cn.bjit.vo.AddressVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


public interface AddressService {

    /**
     * 新增收货地址
     * @param addressAddReqeust
     */
    void add(AddressAddReqeust addressAddReqeust);

    /**
     * 根据id查询指定收货地址
     * @param addressId
     * @return
     */
    AddressVO findById(long addressId);

    /**
     * 删除指定收货地址
     * @param addressId
     * @return
     */
    int del(long addressId);

    /**
     * 查询所有的收货地址
     * @return
     */
    List<AddressVO> findUserAllAddress();
}
